import request from '@/utils/request'

export function getToken(data) {
    return request({
        url: 'http://127.0.0.1:8000/api/token/',
        method: 'POST',
        data: {
            username: data.username,
            password: data.password,
        },
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
    })
}
export function refreshToken(data) {
    return request({
        url: 'http://127.0.0.1:8000/api/token/refesh/',
        method: 'POST',
        data: {
            username: data.username,
            password: data.password,
        },
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
    })
}
